namespace IAM.Interface.Common
{
    using System;
    using System.Security.Cryptography;
    using System.Text;
    using System.Xml;

    public class XMlSign
    {
        public string SignXml(XmlDocument Doc)
        {
            byte[] bts = new SHA1CryptoServiceProvider().ComputeHash(Encoding.Unicode.GetBytes(Doc.OuterXml));
            return Encoding.Unicode.GetString(bts);
        }
    }
}

